﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MakeIT.SGI.ERP.Apresentacao.Reports.Caixa.CaixaTableAdapters;
using Microsoft.Reporting.WebForms;
using System.Data;

namespace MakeIT.SGI.ERP.Apresentacao.Reports.Caixa
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.ReportViewer1.LocalReport.DataSources.Clear();

                ListaCaixaTableAdapter lcTA = new ListaCaixaTableAdapter();
                Caixa.ListaCaixaDataTable lcDT = new Caixa.ListaCaixaDataTable();
                lcDT = lcTA.GetData();
                this.ReportViewer1.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", (DataTable)lcDT));
            }
        }
    }
}